<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .father {
            width: 1000px;
            background-color: bisque;
        }

        .box1 {
            width: 200px;
            height: 200px;
            border: 10px dashed blueviolet;
            /* margin: auto; */
            margin-top: 50px;
            /* border-width: 10px;
            border-style: double;
            border-color: blueviolet; */
        }


        .box2 {
            width: 200px;
            height: 200px;
            /* 上边框 */
            border-top: 10px dashed olivedrab;
            /* 下边框 */
            border-bottom: 10px dotted rebeccapurple;
            /* 左边框 */
            border-left: 5px solid tomato;
            /* 右边框 */
            border-right: 10px double skyblue;


            /* 4个方向的外边距 */
            margin: 0px 200px 100px 300px;

            /* 左外边距 */
            /* margin-left: 100px; */
            /* 上外边距 */
            /* margin-top: 50px; */

            /* 内边距 */
            /* padding: 100px; */
            /* 上内边距 */
            /* padding-top: 100px; */
        }
    </style>
</head>

<body>
    <div class="father">
        <div class="box1"></div>
    </div>
    <div class="box2"></div>
</body>

</html>